import {a0 as REQUEST} from "./index-Dfdf_Rjk.js";

function getModelList(params) {
    return REQUEST.get("/model/getModelList", params);
}

function createModel(data) {
    return REQUEST.post("/model/createModel", data);
}

function updateModel(modelId, data) {
    return REQUEST.post("/model/updateModel/".concat(modelId), data);
}

function deleteModel(modelId) {
    return REQUEST.post("/model/deleteModel/".concat(modelId));
}

function getDataBasesByPage(params) {
    return REQUEST.get("/dbSource/getDataBasesByPage", params);
}

function getDataBasePatterns(params) {
    return REQUEST.get("/dbSource/getDataBasePatterns", params);
}

function createDataBaseSource(data) {
    return REQUEST.post("/dbSource/createDataBaseSource", data);
}

function updateDataBaseSource(dbId, data) {
    return REQUEST.post("/dbSource/updateDataBaseSource/".concat(dbId), data);
}

function getAllTags(params) {
    return REQUEST.get("/tag/getAllTags", params);
}

function createTag(data) {
    return REQUEST.post("/tag/createTag", data);
}

function deleteTag(tagId) {
    return REQUEST.post("/tag/deleteTag/".concat(tagId));
}

function getModelPeggings(params) {
    return REQUEST.get("/model/getModelPeggings", params);
}

function createModelPeggingMap(data) {
    return REQUEST.post("/model/createModelPeggingMap", data);
}

export {
    getModelPeggings as a,
    getAllTags as b,
    createModelPeggingMap as c,
    deleteModel as d,
    getDataBasesByPage as e,
    createModel as f,
    getModelList as g,
    getDataBasePatterns as h,
    createDataBaseSource as i,
    updateDataBaseSource as j,
    createTag as k,
    deleteTag as l,
    updateModel as u
};
